package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the NOTELIST_ database table.
 * 
 */
@Entity
@Table(name="NOTELIST_")
@NamedQuery(name="Notelist.findAll", query="SELECT n FROM Notelist n")
public class Notelist implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="NOTELIST__NOTELISTID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="NOTELIST__NOTELISTID_GENERATOR")
	@Column(name="NOTELIST_ID")
	private long notelistId;

	@Column(name="NOTELIST_ACT")
	private String notelistAct;

	@Column(name="NOTELIST_CONTACTS")
	private String notelistContacts;

	@Column(name="NOTELIST_CUSTOMER")
	private String notelistCustomer;

	@Temporal(TemporalType.DATE)
	@Column(name="NOTELIST_DATE")
	private Date notelistDate;

	@Column(name="NOTELIST_EXECTOR")
	private String notelistExector;

	@Column(name="NOTELIST_IFDELETE")
	private BigDecimal notelistIfdelete;

	@Temporal(TemporalType.DATE)
	@Column(name="NOTELIST_INTODATE")
	private Date notelistIntodate;

	@Column(name="NOTELIST_REPAIR")
	private String notelistRepair;

	@Column(name="NOTELIST_TYPE")
	private String notelistType;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="CUSNO")
	private Customer customer;

	//bi-directional many-to-one association to Repairorder
	@ManyToOne
	@JoinColumn(name="REPAIRORDER_ID")
	private Repairorder repairorder;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="USER_ID")
	private User user;

	//用户id
	@Transient
	private Long userId;
	//维修工单id
	@Transient
	private Long repairorderId;
	
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getRepairorderId() {
		return repairorderId;
	}

	public void setRepairorderId(Long repairorderId) {
		this.repairorderId = repairorderId;
	}

	public Notelist() {
	}

	public long getNotelistId() {
		return this.notelistId;
	}

	public void setNotelistId(long notelistId) {
		this.notelistId = notelistId;
	}

	public String getNotelistAct() {
		return this.notelistAct;
	}

	public void setNotelistAct(String notelistAct) {
		this.notelistAct = notelistAct;
	}

	public String getNotelistContacts() {
		return this.notelistContacts;
	}

	public void setNotelistContacts(String notelistContacts) {
		this.notelistContacts = notelistContacts;
	}

	public String getNotelistCustomer() {
		return this.notelistCustomer;
	}

	public void setNotelistCustomer(String notelistCustomer) {
		this.notelistCustomer = notelistCustomer;
	}

	public Date getNotelistDate() {
		return this.notelistDate;
	}

	public void setNotelistDate(Date notelistDate) {
		this.notelistDate = notelistDate;
	}

	public String getNotelistExector() {
		return this.notelistExector;
	}

	public void setNotelistExector(String notelistExector) {
		this.notelistExector = notelistExector;
	}

	public BigDecimal getNotelistIfdelete() {
		return this.notelistIfdelete;
	}

	public void setNotelistIfdelete(BigDecimal notelistIfdelete) {
		this.notelistIfdelete = notelistIfdelete;
	}

	public Date getNotelistIntodate() {
		return this.notelistIntodate;
	}

	public void setNotelistIntodate(Date notelistIntodate) {
		this.notelistIntodate = notelistIntodate;
	}

	public String getNotelistRepair() {
		return this.notelistRepair;
	}

	public void setNotelistRepair(String notelistRepair) {
		this.notelistRepair = notelistRepair;
	}

	public String getNotelistType() {
		return this.notelistType;
	}

	public void setNotelistType(String notelistType) {
		this.notelistType = notelistType;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Repairorder getRepairorder() {
		return this.repairorder;
	}

	public void setRepairorder(Repairorder repairorder) {
		this.repairorder = repairorder;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}